#ifndef TESTLAYOUT_H
#define TESTLAYOUT_H

#include <QWidget>
#include <QHBoxLayout>
#include <QPushButton>
#include <QGridLayout>
#include <QMap>
QT_BEGIN_NAMESPACE
namespace Ui { class TestLayout; }
QT_END_NAMESPACE

class hWindow : public QWidget
{
    Q_OBJECT

public:
    hWindow(QWidget *parent = nullptr);
    ~hWindow();

private:
    Ui::TestLayout *ui;
    QHBoxLayout  *hLayout;
    QGridLayout  *gLayout;
    QMap<int,QPushButton*> btnMap;
    void testHLayout();
    void testGLayout();
};
#endif // TESTLAYOUT_H
